package com.sx.zongzhi.adapter;


import android.content.Context;

import com.sx.zongzhi.R;
import com.sx.zongzhi.bean.GlobalBean;
import com.zhy.adapter.abslistview.CommonAdapter;
import com.zhy.adapter.abslistview.ViewHolder;

import java.util.List;

/**
 * Created by XZY on 2017/11/23.
 * 公共字典数据的adapter
 */
public class SpinnerPubAdapter extends CommonAdapter<GlobalBean> {


    private Context context;

    public SpinnerPubAdapter(Context context, int layoutId, List<GlobalBean> datas) {
        super(context, layoutId, datas);
        this.context=context;
    }

    @Override
    protected void convert(ViewHolder viewHolder,GlobalBean item, int position) {
        viewHolder.setText(R.id.tv_Content,item.getDisplayName());
    }
}
